function createTitle(ppxiangmuleixing, showtype) {
    var title = ""
    var map = getTitle(ppxiangmuleixing)
    var map2 = getTwoTitle(ppxiangmuleixing)
    var width = getWidth(ppxiangmuleixing);
    var width2 = getTwoWidth(ppxiangmuleixing);
    title += "<div class='table-head'><table class=\"table table-hover table-bordered\" style=\"overflow:hidden; margin-bottom:0;table-layout:fixed;\" v-if=\"show\">" + "   <thead >" + "    <tr style=\"font-weight: bold;\">"
    if(map["0"]==2){
        var index = 1; // 初始化计数器
        for (var key in map2) {
            if (map2.hasOwnProperty(key)) { // 检查属性是否是map2对象自身的
                let rowspanValue = map2[key] === 1 ? "2" : "1";
                if (width2[index] !== -1) {
                    title += `        <td style="text-align:center;vertical-align:middle;width:${width2[index]}px;" colspan="${map2[key]}" rowspan="${rowspanValue}">${key}</td>\n`;
                } else {
                    title += `        <td style="text-align:center;vertical-align:middle;" colspan="${map2[key]}" rowspan="${rowspanValue}">${key}</td>\n`;
                }
                index++; // 递增计数器
            }
        }
        switch (showtype) {
            case 1:
                title += "<td style=\"text-align:center;vertical-align:middle;width:100px;\" rowspan=\"2\" >"+map["-1"]+"</td>\n"
                break;
            case 2:
                title += "<td style=\"text-align:center;vertical-align:middle;width:100px;\" rowspan=\"2\" >委员表决<br>票数</td>" + "<td style=\"text-align:center;vertical-align:middle;width:100px;\" rowspan=\"2\" >表决结果</td>";
                break;
        }
        title +=
            "    </tr>\n" +
            "    <tr style=\"font-weight: bold;\">\n"
        for (var i in map) {
            if (i !== "-1" && i!=="0") {
                if (width[i] !== -1) title += "<td style=\"text-align:center;vertical-align:middle;width:" + width[i] + "px;\" colspan='1'>" + map[i] + "</td>"
                else title += "<td style=\"text-align:center;vertical-align:middle;\" colspan='1'>" + map[i] + "</td>"
            }
        }
    }
    else {
        for (var i in map) {
            if (i !== "-1") {
                if (width[i] !== -1) title += "<td style=\"text-align:center;vertical-align:middle;width:" + width[i] + "px;\" >" + map[i] + "</td>"
                else title += "<td style=\"text-align:center;vertical-align:middle;\" >" + map[i] + "</td>"
            }
        }
        switch (showtype) {
            case 1:
                title += "<td style=\"text-align:center;vertical-align:middle;width:100px;\" >" + map['-1'] + "</td>";
                break;
            case 2:
                title += "<td style=\"text-align:center;vertical-align:middle;width:100px;\" >委员表决<br>票数</td>" + "<td style=\"text-align:center;vertical-align:middle;width:100px;\" >表决结果</td>";
                break;
        }
    }
    title += "</tr>"+"</thead></table></div><div class=\"table-body\"><table style=\"table-layout: fixed;\"><tbody>";
    return title;
}

function createBody2(ppxiangmuleixing, j, mmpinguiONE, mmPinguiHebingshu) {
    var mmHtml = "<tr>"
    var width = getWidth(ppxiangmuleixing);
    var hoverColumns = getHoverColumns(ppxiangmuleixing);

    for (var i = 1; i <= getEnd(ppxiangmuleixing); i++) {
        var mmerjihe = ""
        if(isPinpaiLie(ppxiangmuleixing,i)) {
            if (j === 0) {
                let style = width[i] !== -1 ? `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:${width[i]}px;'` : `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;'`;

                // 检查是否需要添加悬浮效果
                if (hoverColumns.includes(i)) {
                    mmerjihe += `<td class='huanghang hovermain' ${style} rowspan='${mmPinguiHebingshu}'>
                        <div class="text-content">${mmpinguiONE["text" + i]}</div>
                        <span class="hovertip">${mmpinguiONE["text" + i]}</span>
                    </td>`;
                } else {
                    mmerjihe += `<td class='huanghang' ${style} rowspan='${mmPinguiHebingshu}'>${mmpinguiONE["text" + i]}</td>`;
                }
            }
            mmHtml += mmerjihe;
        }
        else {
            let style = width[i] !== -1 ? `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:${width[i]}px;'` : `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;'`;

            // 检查是否需要添加悬浮效果
            if (hoverColumns.includes(i)) {
                mmHtml += `<td class='huanghang hovermain' ${style}>
                    <div class="text-content">${mmpinguiONE["text" + i]}</div>
                    <span class="hovertip">${mmpinguiONE["text" + i]}</span>
                </td>`;
            } else {
                mmHtml += `<td class='huanghang' ${style}>${mmpinguiONE["text" + i]}</td>`;
            }
        }
    }
    return mmHtml
}

function createBody1(ppxiangmuleixing, mmpinguiONE) {
    var mmHtml = "<tr>"
    var width = getWidth(ppxiangmuleixing);
    var map = getTitle(ppxiangmuleixing);
    var width2 = getTwoWidth(ppxiangmuleixing);
    var hoverColumns = getHoverColumns(ppxiangmuleixing);

    for (var i = 1; i <= getEnd(ppxiangmuleixing); i++) {
        if (map["0"] == 2) {
            if (width2[i] !== -1) width[i] = width2[i]
        }

        // 检查是否需要添加悬浮效果
        if (hoverColumns.includes(i)) {
            if (width[i] !== -1) {
                mmHtml += `<td class='huanghang hovermain' style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:${width[i]}px;'>
                    <div class="text-content">${mmpinguiONE["text" + i]}</div>
                    <span class="hovertip">${mmpinguiONE["text" + i]}</span>
                </td>`;
            } else {
                mmHtml += `<td class='huanghang hovermain' style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;'>
                    <div class="text-content">${mmpinguiONE["text" + i]}</div>
                    <span class="hovertip">${mmpinguiONE["text" + i]}</span>
                </td>`;
            }
        } else {
            if (width[i] !== -1) mmHtml += "<td class='huanghang' style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:" + width[i] + "px;\' >" + mmpinguiONE["text" + i] + "</td>";
            else mmHtml += "<td class='huanghang' style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;'>" + mmpinguiONE["text" + i] + "</td>";
        }
    }
    return mmHtml
}

function createBody3(ppxiangmuleixing, k, j, mmpinguiONE, mmPinguiHebingshu, mmPinzhongHebingshu, isFirstPinpai, isFirstPinzhong) {
    var mmHtml = ""
    var width = getWidth(ppxiangmuleixing);
    var hoverColumns = getHoverColumns(ppxiangmuleixing);

    // 处理所有列
    for (var i = 1; i <= getEnd(ppxiangmuleixing); i++) {
        var mmerjihe = ""

        // 处理品种列（第一层）
        if (isPinzhongLie(ppxiangmuleixing, i)) {
            if (isFirstPinzhong) {
                // 获取当前品种的颜色（通过父级函数传递）
                var pinzhongColor = window.currentPinzhongColor || "#E8F4FF";

                let style = width[i] !== -1 ?
                    `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:${width[i]}px;background-color:${pinzhongColor};'` :
                    `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;background-color:${pinzhongColor};'`;

                // 检查是否需要添加悬浮效果
                if (hoverColumns.includes(i)) {
                    mmerjihe += `<td class='huanghang hovermain' ${style} rowspan='${mmPinzhongHebingshu}'>
                        <div class="text-content">${mmpinguiONE["text" + i] || ""}</div>
                        <span class="hovertip">${mmpinguiONE["text" + i] || ""}</span>
                    </td>`;
                } else {
                    mmerjihe += `<td class='huanghang' ${style} rowspan='${mmPinzhongHebingshu}'>${mmpinguiONE["text" + i] || ""}</td>`;
                }
            }
            mmHtml += mmerjihe;
            continue;
        }

        // 处理品牌列（第二层）
        if (isPinpaiLie2(ppxiangmuleixing, i)) {
            if (isFirstPinpai) {
                let style = width[i] !== -1 ?
                    `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:${width[i]}px;'` :
                    `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;'`;

                // 检查是否需要添加悬浮效果
                if (hoverColumns.includes(i)) {
                    mmerjihe += `<td class='huanghang hovermain' ${style} rowspan='${mmPinguiHebingshu}'>
                        <div class="text-content">${mmpinguiONE["text" + i] || ""}</div>
                        <span class="hovertip">${mmpinguiONE["text" + i] || ""}</span>
                    </td>`;
                } else {
                    mmerjihe += `<td class='huanghang' ${style} rowspan='${mmPinguiHebingshu}'>${mmpinguiONE["text" + i] || ""}</td>`;
                }
            }
            mmHtml += mmerjihe;
            continue;
        }

        // 处理普通列
        let style = width[i] !== -1 ?
            `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;width:${width[i]}px;'` :
            `style='text-align:center;vertical-align:middle;word-break:break-all;word-wrap:break-word;'`;

        // 检查是否需要添加悬浮效果
        if (hoverColumns.includes(i)) {
            mmHtml += `<td class='huanghang hovermain' ${style}>
                <div class="text-content">${mmpinguiONE["text" + i] || ""}</div>
                <span class="hovertip">${mmpinguiONE["text" + i] || ""}</span>
            </td>`;
        } else {
            if(ppxiangmuleixing == "219"&&window.lunci==2&&i==17){
                mmHtml += `<td class='huanghang' ${style}>${mmpinguiONE["text21"]+ "/" +mmpinguiONE["text22"]}</td>`;
            }else{
                mmHtml += `<td class='huanghang' ${style}>${mmpinguiONE["text" + i] || ""}</td>`;
            }
        }
    }

    return mmHtml;
}
//数值为单元格数量
function getTwoTitle(ppxiangmuleixing) {
    var tmp = {};
    switch (ppxiangmuleixing) {
        case "72": {
            tmp["序号"] = 1
            tmp["调整后目录品种"] = 8
            tmp["原有目录品种"] = 7
            break;
        }
        case "79": {
            tmp["序号"] = 1
            tmp["本部中药饮片名称"] = 1
            tmp["秦淮中药饮片名称"] = 1
            tmp["专家意见"] = 2
            break;
        }
        case "202": {
            tmp["序号"] = 1
            tmp["调整后目录品种"] = 9
            tmp["原有目录品种"] = 9
            break;
        }
        case "104": {
            tmp["序号"] = 1
            tmp["替换类别"] = 1
            tmp["品种名"] = 1
            tmp["替换理由（简要说明）"] = 1
            tmp["技术参数"] = 1
            tmp["被替换产品信息"] = 6
            tmp["替换产品信息"] = 10
            tmp["备注"] = 1
            tmp["论证会结果"] = 1
            break;
        }
    }
    return tmp
}
function  getTwoWidth(ppxiangmuleixing){
    var width = new Array(25).fill(-1);
    switch (ppxiangmuleixing) {

    }
    return width
}
function getTitle(ppxiangmuleixing) {
    var map = {};
    switch (ppxiangmuleixing) {
        case "203": {
            map["1"] = "序号"
            map["2"] = "药品名称"
            map["3"] = "规格"
            map["4"] = "单位"
            map["5"] = "价格（元）"
            map["6"] = "一致性评价"
            map["7"] = "生产企业"
            map["-1"] = "表决意见（同意纳入请打勾）"
            break;
        }
        case "201": {
            map["1"] = "序号";
            map["2"] = "药品分类";
            map["3"] = "药品类别";
            map["4"] = "药品名称";
            map["5"] = "规格";
            map["6"] = "单位";
            map["7"] = "医保类别";
            map["8"] = "通过一致性评价";
            map["9"] = "价格（元）";
            map["10"] = "平台药品来源";
            map["11"] = "基药";
            map["12"] = "生产企业";
            map["13"] = "提报科室";
            map["14"] = "临床是否有需求";
            map["15"] = "抗肿瘤药物管理工作小组会意见";
            map["-1"] = "表决意见（同意淘汰请打勾）";
            break;
        }
        case "202": {
            map["0"] = "2"
            map["1"] = "产品编码"
            map["2"] = "药品名称"
            map["3"] = "规格"
            map["4"] = "单位"
            map["5"] = "剂型"
            map["6"] = "生产企业"
            map["7"] = "价格(元)"
            map["8"] = "备注"
            map["9"] = "抗肿瘤药物管理工作小组会意见"
            map["10"] = "产品编码"
            map["11"] = "药品名称"
            map["12"] = "规格"
            map["13"] = "单位"
            map["14"] = "剂型"
            map["15"] = "生产企业"
            map["16"] = "价格(元)"
            map["17"] = "备注"
            map["18"] = "抗肿瘤药物管理工作小组会意见"
            map["-1"] = "表决意见（同意替代请打勾）";
            break;
        }
        case "204": {
            map["1"] = "序号";
            map["2"] = "产品编码";
            map["3"] = "药品名称";
            map["4"] = "剂型";
            map["5"] = "规格";
            map["6"] = "转换比";
            map["7"] = "包装单位";
            map["8"] = "生产企业";
            map["9"] = "基药";
            map["10"] = "医保";
            map["11"] = "一致性评价";
            map["12"] = "价格";
            map["13"] = "备注";
            map["-1"] = "表决意见（同意纳入打勾）";
            break;
        }
        case "205": {
            map["1"] = "序号";
            map["2"] = "药品分类";
            map["3"] = "药品类别";
            map["4"] = "药品名称";
            map["5"] = "规格";
            map["6"] = "单位";
            map["7"] = "医保类别";
            map["8"] = "通过一致性评价";
            map["9"] = "价格（元）";
            map["10"] = "平台药品来源";
            map["11"] = "基药";
            map["12"] = "生产企业";
            map["13"] = "备注";
            map["-1"] = "表决意见（同意淘汰请打勾）";
            break;
        }
        case "206": {
            map["1"] = "序号";
            map["2"] = "产品编码";
            map["3"] = "药品名称";
            map["4"] = "剂型";
            map["5"] = "规格";
            map["6"] = "转换比";
            map["7"] = "包装单位";
            map["8"] = "生产企业";
            map["9"] = "基药";
            map["10"] = "医保";
            map["11"] = "一致性评价";
            map["12"] = "价格（元）";
            map["13"] = "申请科室";
            map["14"] = "备注";
            map["-1"] = "表决意见（同意纳入请打勾）";
            break;
        }
        case "207": {
            map["1"] = "序号";
            map["2"] = "产品编码";
            map["3"] = "药品名称";
            map["4"] = "剂型";
            map["5"] = "规格";
            map["6"] = "转换比";
            map["7"] = "包装单位";
            map["8"] = "生产企业";
            map["9"] = "基药";
            map["10"] = "医保";
            map["11"] = "一致性评价";
            map["12"] = "价格";
            map["13"] = "备注";
            map["-1"] = "表决意见（同意纳入请打勾）";
            break;
        }
        case "208": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "分类";
            map["4"] = "规格";
            map["5"] = "厂家";
            map["6"] = "价格（元）";
            map["7"] = "单位";
            map["8"] = "基药";
            map["9"] = "集采";
            map["10"] = "备注";
            map["11"] = "小组会投票结果";
            map["-1"] = "是否保留";
            break;
        }
        case "100": {
            map["1"] = "品种序号";
            map["2"] = "序号";
            map["3"] = "产品编码";
            map["4"] = "药品名称";
            map["5"] = "剂型";
            map["6"] = "规格";
            map["7"] = "转换比";
            map["8"] = "包装单位";
            map["9"] = "生产企业";
            map["10"] = "基药";
            map["11"] = "医保";
            map["12"] = "一致性评价";
            map["13"] = "价格";
            map["14"] = "备注";
            map["-1"] = "表决意见（同意纳入打勾）";
            break;
        }
        case "217":
        case "218":
        case "219":
        {
            map["1"] = "序号";
            map["2"] = "医保一级分类";
            map["3"] = "药品名称";
            map["4"] = "单疗程治疗费用";
            map["5"] = "日均治疗费用（元）";
            map["6"] = "基药";
            map["7"] = "集采";
            map["8"] = "医保类别";
            map["9"] = "西医适应症";
            map["10"] = "功效相近院内制剂";
            map["11"] = "23年使用金额（万元）";
            map["12"] = "24年使用金额（万元）";
            map["13"] = "25年1-5月使用金额（万元）";
            map["14"] = "规格";
            map["15"] = "价格（元）";
            map["16"] = "国谈";
           if(window.lunci==2)map["17"] = "上一轮投票数";
            map["-1"] = "是否保留";
            break;
        }
        case "12": {
            map["1"] = "类型";
            map["2"] = "序号";
            map["3"] = "药品编码";
            map["4"] = "药品名称";
            map["5"] = "日均治疗费用（元）";
            map["6"] = "单价";
            map["7"] = "日均用量";
            map["8"] = "单位";
            map["9"] = "医保类别";
            map["10"] = "基药";
            map["11"] = "集采";
            map["12"] = "医保一级分类";
            map["13"] = "医保二级分类";
            map["14"] = "西医适应症";
            map["15"] = "功效相近院内制剂";
            map["16"] = "23年使用金额（万元）";
            map["17"] = "24年使用金额（万元）";
            map["18"] = "25年1-5月使用金额（万元）";
            map["19"] = "规格";
            map["20"] = "价格（元）";
            map["-1"] = "表决意见（同意保留请打勾）";
            break;
        }
        case "7": {
            map["1"] = "序号";
            map["2"] = "药品编码";
            map["3"] = "药品名称";
            map["4"] = "日均治疗费用（元）";
            map["5"] = "单价";
            map["6"] = "日均用量";
            map["7"] = "单位";
            map["8"] = "医保类别";
            map["9"] = "基药";
            map["10"] = "集采";
            map["11"] = "医保一级分类";
            map["12"] = "医保二级分类";
            map["13"] = "西医适应症";
            map["14"] = "同类口服剂型";
            map["15"] = "23年使用金额（万元）";
            map["16"] = "24年使用金额（万元）";
            map["17"] = "25年1-5月使用金额（万元）";
            map["18"] = "规格";
            map["19"] = "价格（元）";
            map["20"] = "国谈";
            map["-1"] = "是否剔除";
            break;
        }
        case "8": {
            map["1"] = "序号";
            map["2"] = "药品编码";
            map["3"] = "药品名称";
            map["4"] = "日治疗费用（元）";
            map["5"] = "单价";
            map["6"] = "医保类别";
            map["7"] = "基药";
            map["8"] = "集采";
            map["9"] = "医保一级分类";
            map["10"] = "医保二级分类";
            map["11"] = "医保三级分类";
            map["12"] = "医保四级分类";
            map["13"] = "西医适应症";
            map["14"] = "规格";
            map["15"] = "价格（元）";
            map["-1"] = "是否剔除";
            break;
        }
        case "9": {
            map["1"] = "序号";
            map["2"] = "产品编码";
            map["3"] = "药品名称";
            map["4"] = "日均治疗费用（元）";
            map["5"] = "单价";
            map["6"] = "日均用量";
            map["7"] = "剂型";
            map["8"] = "单位";
            map["9"] = "医保类别";
            map["10"] = "基药";
            map["11"] = "集采";
            map["12"] = "医保一级分类";
            map["13"] = "医保二级分类";
            map["14"] = "医保三级分类";
            map["15"] = "医保四级分类";
            map["16"] = "西医适应症";
            map["17"] = "功效相近院内制剂";
            map["18"] = "23年使用金额（万元）";
            map["19"] = "24年使用金额（万元）";
            map["20"] = "25年1-5月使用金额（万元）";
            map["21"] = "规格";
            map["22"] = "价格（元）";
            map["-1"] = "是否剔除";
            break;
        }
        case "10": {
            map["1"] = "序号";
            map["2"] = "产品编码";
            map["3"] = "药品名称";
            map["4"] = "日均治疗费用（元）";
            map["5"] = "单价";
            map["6"] = "日均用量";
            map["7"] = "剂型";
            map["8"] = "单位";
            map["9"] = "医保类别";
            map["10"] = "基药";
            map["11"] = "集采";
            map["12"] = "医保一级分类";
            map["13"] = "医保二级分类";
            map["14"] = "西医适应症";
            map["15"] = "23年使用金额（万元）";
            map["16"] = "24年使用金额（万元）";
            map["17"] = "25年1-5月使用金额（万元）";
            map["18"] = "规格";
            map["19"] = "价格（元）";
            map["-1"] = "是否保留";
            break;
        }
        case "103": {
            map["1"] = "序号"
            map["2"] = "类别"
            map["3"] = "品种名"
            map["4"] = "技术要求"
            map["5"] = "参考品牌"
            map["6"] = "平台编码"
            map["7"] = "产品名称"
            map["8"] = "规格"
            map["9"] = "型号"
            map["10"] = "注册证号"
            map["11"] = "生产厂家"
            map["12"] = "单位"
            map["13"] = "单价"
            map["14"] = "医保编码"
            map["15"] = "备注"
            map["16"] = "论证会结果"
            map["-1"] = "表决意见（同意请打勾）";
            break;
        }
        case "104": {
            map["0"] = "2"
            map["1"] = "物资编码"
            map["2"] = "产品名称"
            map["3"] = "规格"
            map["4"] = "型号"
            map["5"] = "生产厂家"
            map["6"] = "单价"
            map["7"] = "参考品牌"
            map["8"] = "平台编码"
            map["9"] = "产品名称"
            map["10"] = "规格"
            map["11"] = "型号"
            map["12"] = "注册证号"
            map["13"] = "生产厂家"
            map["14"] = "单位"
            map["15"] = "单价"
            map["16"] = "医保编码"
            map["-1"] = "表决意见（同意请打勾）"
            break;
        }
        case "101": {
            map["1"] = "序号"
            map["2"] = "报废批次"
            map["3"] = "唯一识别码"
            map["4"] = "申请科室"
            map["5"] = "设备名称"
            map["6"] = "品牌型号"
            map["7"] = "数量"
            map["8"] = "单价（元）"
            map["9"] = "启用日期"
            map["-1"] = "委员意见（同意请打勾）";
            break;
        }
        case "102": {
            map["1"] = "序号"
            map["2"] = "项目名称"
            map["3"] = "申请科室"
            map["4"] = "设备名称"
            map["5"] = "数量"
            map["6"] = "预算单价（万元）"
            map["7"] = "预算总价（万元）"
            map["-1"] = "委员意见（同意请打勾）";
            break;
        }

        case "209": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "分类";
            map["4"] = "规格";
            map["5"] = "厂家";
            map["6"] = "价格（元）";
            map["7"] = "单位";
            map["8"] = "基药";
            map["9"] = "集采";
            map["10"] = "备注";
            map["11"] = "小组会投票结果";
            map["-1"] = "是否保留";
            break;
        }
        case "210": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "分类";
            map["4"] = "规格";
            map["5"] = "厂家";
            map["6"] = "价格（元）";
            map["7"] = "单位";
            map["8"] = "医保类别";
            map["9"] = "基药";
            map["10"] = "集采";
            map["11"] = "创新"
            map["12"] = "备注"
            map["13"] = "小组会投票结果"
            map["-1"] = "是否纳入";
            break;
        }
        case "211": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "分类";
            map["4"] = "规格";
            map["5"] = "厂家";
            map["6"] = "价格（元）";
            map["7"] = "单位";
            map["8"] = "医保类别";
            map["9"] = "基药";
            map["10"] = "集采";
            map["11"] = "备注";
            map["12"] = "小组会投票结果";
            map["-1"] = "是否保留";
            break;
        }
        case "212": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "规格";
            map["4"] = "厂家";
            map["5"] = "价格（元）";
            map["6"] = "单位";
            map["7"] = "医保类别";
            map["8"] = "基药";
            map["9"] = "集采";
            map["10"] = "备注";
            map["-1"] = "是否纳入";
            break;
        }
        case "213": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "日均治疗费用（元）";
            map["4"] = "医保类别";
            map["5"] = "基药";
            map["6"] = "集采";
            map["7"] = "医保一级分类";
            map["8"] = "医保二级分类";
            map["9"] = "医保三级分类";
            map["10"] = "西医适应症";
            map["11"] = "医保四级分类";
            map["12"] = "同类口服剂型";
            map["13"] = "23年使用金额（万元）";
            map["14"] = "24年使用金额（万元）";
            map["15"] = "25年1-5月使用金额（万元）";
            map["16"] = "规格";
            map["17"] = "价格（元）";
            map["18"] = "国谈";
            map["-1"] = "是否保留";
            break;
        }
        case "214": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "日均治疗费用（元）";
            map["4"] = "医保类别";
            map["5"] = "基药";
            map["6"] = "集采";
            map["7"] = "医保一级分类";
            map["8"] = "医保二级分类";
            map["9"] = "医保三级分类";
            map["10"] = "医保四级分类";
            map["11"] = "西医适应症";
            map["12"] = "规格";
            map["13"] = "价格";
            map["-1"] = "是否保留";
            break;
        }
        case "215": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "日均治疗费用（元）";
            map["4"] = "基药";
            map["5"] = "集采";
            map["6"] = "医保二级分类";
            map["7"] = "西医适应症";
            map["8"] = "23年使用金额（万元）";
            map["9"] = "24年使用金额（万元）";
            map["10"] = "25年1-5月使用金额（万元）";
            map["11"] = "规格";
            map["12"] = "价格（元）";
            map["13"] = "临床是否需要";
            map["-1"] = "是否保留";
            break;
        }
        case "216": {
            map["1"] = "序号";
            map["2"] = "药品名称";
            map["3"] = "日均治疗费用（元）";
            map["4"] = "医保类别";
            map["5"] = "基药";
            map["6"] = "集采";
            map["7"] = "医保一级分类";
            map["8"] = "医保二级分类";
            map["9"] = "西医适应症";
            map["10"] = "23年使用金额（万元）";
            map["11"] = "24年使用金额（万元）";
            map["12"] = "25年1-5月使用金额（万元）";
            map["13"] = "规格";
            map["14"] = "价格（元）";
            map["-1"] = "是否保留";
            break;
        }

    }
    return map;
}

function getEnd(ppxiangmuleixing) {
    var end = 0;
    switch (ppxiangmuleixing) {
        case "203":
            end = 7;
            break;
        case "201":
            end = 15;
            break;
        case "202":
            end = 19;
            break;
        case "204":
            end = 13;
            break;
        case "205":
            end = 13;
            break;
        case "206":
            end = 14;
            break;
        case "207":
            end = 13;
            break;
        case "208":
            end = 11;
            break;
        case "217":
        case "218":
        case "219":
            end = 16;
            if(window.lunci==2)end = 17;
            break;
        case "100":
            end = 14;
            break;
        case "12":
            end = 20;
            break;
        case "7":
            end = 20;
            break;
        case "8":
            end = 15;
            break;
        case "9":
            end = 22;
            break;
        case "10":
            end = 19;
            break;
        case "103":
            end = 16;
            break;
        case "104":
            end = 23;
            break;
        case "101":
            end = 9;
            break;
        case "102":
            end = 7;
            break;
        case "209":
            end = 11;
            break;
        case "210":
            end = 13;
            break;
        case "211":
            end = 12;
            break;
        case "212":
            end = 10;
            break;
        case "213":
            end = 18;
            break;
        case "214":
            end = 13;
            break;
        case "215":
            end = 13;
            break;
        case "216":
            end = 14;
            break;
    }
    return end;
}
//设置列宽
function getWidth(ppxiangmuleixing) {
    var width = new Array(getEnd(ppxiangmuleixing)+1).fill(-1);
    switch (ppxiangmuleixing) {
        case "219":
            width[0] = -1;
            width[2] = 130;
            width[9] = 300;
            break;
        case "51":
            width[0] = -1;
            width[1] = 50;
            width[2] = 150;
            width[3] = 150;
            width[4] = 150;
            width[5] = 150;
            width[6] = 600;
            break;
        case "103":
            width[0] = -1;
            width[1] = 50;
            width[2] = 80;
            width[3] = 80;
            width[4] = 120;
            width[5] = 50;
            width[6] = 60;
            width[7] = 60;
            width[8] = 80;
            width[9] = 60;
            width[10] = 60;
            width[11] = 60;
            width[12] = 50;
            width[13] = 50;
            width[14] = 60;
            width[15] = 100;
            width[16] = 60;

            break;

    }

    return width;
}
//设置品牌列
function isPinpaiLie(ppxiangmuleixing,tar) {
    let numbers = [];

    switch (ppxiangmuleixing) {
        case "202":
        case "203":
        case "204":
        case "207":
            numbers = [1];
            break;
        default:
            break;
    }
    return numbers.includes(tar);
}

//设置品种列（用于三层循环）
function isPinzhongLie(ppxiangmuleixing,tar) {
    let numbers = [];

    switch (ppxiangmuleixing) {
        case "100":
            numbers = [1];
            break;
        case "217":
        case "218":
        case "219":
            numbers = [2];
            break;
        case "103":
            numbers = [1,2,3,4,16];
            break;
        case "104":
            numbers = [1,2,3,4,5,6,7,8,9,10,11,22,23];
            break;
        default:
            break;
    }
    return numbers.includes(tar);
}

//设置品牌列（用于三层循环）
function isPinpaiLie2(ppxiangmuleixing,tar) {
    let numbers = [];

    switch (ppxiangmuleixing) {
        case "100":
            numbers = [2];
            break;
        case "103":
            numbers = [5];
            break;
        case "104":
            numbers = [12];
            break;
        default:
            break;
    }
    return numbers.includes(tar);
}

//是否投品牌
function IsVotePinpai(ppxiangmuleixing) {
    var flag = false;
    switch (ppxiangmuleixing) {
        case "40":
            flag = true;
            break;
    }
    return flag;
}
function IsVotePinzhong(ppxiangmuleixing) {
    var flag = false;
    switch (ppxiangmuleixing) {
        case "103":
        case "104":
            flag = true;
            break;
    }
    return flag;
}
function  IsVoteAll(ppxiangmuleixing) {
    let flag = true;
    switch (ppxiangmuleixing) {
        case "204":
        case "202":
        case "207":
        case "209":
        case "212":
        case "213":
        case "214":
        case "215":
        case "219":
            flag = false;
            break;
    }
    return flag;
}



// function  getSysTitle() {
//     return "药事管理与药物治疗学委员会投票计票系统";
// }

function  getSysTitle() {
    return "医疗设备管理委员会投票计票系统";
}

// 获取需要悬浮显示的列
function getHoverColumns(ppxiangmuleixing) {
    var hoverColumns = [];
    switch (ppxiangmuleixing) {
        case "103":
            hoverColumns = [4,8,9]; // 项目名称和设备名称列
            break;
        case "104":
            hoverColumns = [4,5,15,16]; // 项目名称和设备名称列
            break;
        default:
            break;
    }

    return hoverColumns;
}
